Skip to content

Fix compiler warnings #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 11, 2015
Merged

Fix compiler warnings #27

merged 1 commit into from
Dec 11, 2015

Conversation

jchnkl
Copy link
Contributor

@jchnkl jchnkl commented Nov 30, 2015

  • Type variable 'a' was declared but not used.
  • Name 'textAlign' was shadowed.
  • A case expression could not be determined to cover all inputs.

@@ -403,13 +403,15 @@ textAlign ctx = unsafeParseTextAlign <$> textAlignImpl ctx
unsafeParseTextAlign "center" = AlignCenter
unsafeParseTextAlign "start" = AlignStart
unsafeParseTextAlign "end" = AlignEnd
unsafeParseTextAlign _ = AlignCenter
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would maybe use unsafeThrow here.

@paf31
Copy link
Contributor

paf31 commented Dec 5, 2015

Looks good, thanks!

* Type variable 'a' was declared but not used.
* Name 'textAlign' was shadowed.
* A case expression could not be determined to cover all inputs.
@jchnkl
Copy link
Contributor Author

jchnkl commented Dec 7, 2015

Hi, I've updated the commit to use unsafeThrow. Thanks!

paf31 added a commit that referenced this pull request Dec 11, 2015
@paf31 paf31 merged commit 8a9c7d8 into purescript-web:master Dec 11, 2015
@paf31
Copy link
Contributor

paf31 commented Dec 11, 2015

👍 Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants